<?php $oID = $_GET['id'];?>
<table cellpadding="0" cellspacing="0" width="1008" border="0" align="center">
	<tr>
		<td background="templates/default/images/prnt-header.png" height="127" valign="top">
			<div style="margin-top:100px;margin-left: 135px;width:200px;color:#00A5CF;font-family:verdana,arial;font-size:20px;">
			<?php 
				$telQuery = mysql_query("select s_tel_no as telephone from dt_settings");
				$telRow = mysql_fetch_array($telQuery);
				echo $telRow['telephone'];
			?>
			</div>
		</td>
	</tr>
	<tr>
		<td background="templates/default/images/prnt-mijloc.png" valign="top">
			<div style="margin-left:auto;margin-right:auto; width:920px;padding-bottom:5px;padding-top:15px;border-bottom:4px #f2f2f2 solid;">
				<!-- <div style="float:left;width:70px;height:21px;"><a style="" href="#"><img src="templates/default/images/prnt-inapoi.png" width="70" height="21"></a></div> -->
				<div style="float:right;width:70px;height:21px;"><a style="" href="javascript:window:print()"><img src="templates/default/images/prnt-print.png" width="70" height="21"></a></div>
				<div style="clear:both;"></div>
			</div>
		</td>
	</tr>
	<tr>
		<td background="templates/default/images/prnt-mijloc.png" valign="top">
			<div style="padding-top:10px;padding-bottom:10px;margin-left:auto;margin-right:auto;width:920px;color:#777;font-family:verdana,arial;font-size:14px;letter-spacing:-1px;">
				<div id="titlu_mare" style="font-size:28px;padding-bottom:10px;">
				<?php 
					$offQuery = mysql_query("select * from dt_offers where o_id = '$oID'");
					while ($row = mysql_fetch_array($offQuery)) {
						echo $row['o_title'].' <b style="color:#e8cb55;">'.$row['o_label'].'</b>';
				?>
				</div>
				<div id="text_gri_bold" style="font-weight:700;padding-bottom:10px;">
				<?php echo $row['o_small_desc'];?>
				</div>
				<div id="text_normal" style="padding-bottom:10px;">
				<?php echo $row['o_content'];?>
				</div>
				<!-- <div id="subtitlu_bleu" style="color:#00a5cf;font-weight:700;padding-bottom:10px;">Bla Bla Bla</div> -->
				<div id="div_link" style="padding-bottom:10px;font-weight:700;">
					<?php
						$url = '<a style="color:#00a5cf;text-decoration:none;" href="http://'.$_SERVER["SERVER_NAME"].'/offers/'.$row['c_id'].'/'.$row['o_id'].'/'.cleanitup($row['o_title'].'_'.$row['o_label']).'.html">http://'.$_SERVER["SERVER_NAME"].'/offers/'.$row['c_id'].'/'.$row['o_id'].'/'.cleanitup($row['o_title'].'_'.$row['o_label']).'.html</a>'; 
						echo 'Gasesti aceasta oferta aici: '.$url;
					?>
				</div>
				<?php }?>
			</div>
		</td>
	</tr>
	<tr>
		<td background="templates/default/images/prnt-mijloc.png" valign="top">
			<div style="margin-left:auto;margin-right:auto;width:920px;padding-top:5px;padding-bottom:20px;border-top:4px #f2f2f2 solid;">
				<!-- <div style="float:left;width:70px;height:21px;"><a style="" href="#"><img src="templates/default/images/prnt-inapoi.png" width="70" height="21"></a></div> -->
				<div style="float:right;width:70px;height:21px;"><a style="" href="javascript:window:print()"><img src="templates/default/images/prnt-print.png" width="70" height="21"></a></div>
				<div style="clear:both;"></div>
			</div>
		</td>
	</tr>
	
	<tr>
		<td background="templates/default/images/prnt-meniu-jos.png" height="22">
			<div style="color:white;height:22px;padding-left:35px;">
				<a style="text-decoration:none;color:white;font-size:13px;font-weight:700;font-family:verdana,arial;letter-spacing:-1px;padding-left:10px;padding-right:10px;" href="#">Home</a>|
				<a style="text-decoration:none;color:white;font-size:13px;font-weight:700;font-family:verdana,arial;letter-spacing:-1px;padding-left:10px;padding-right:10px;" href="#">Site Map</a>|
				<a style="text-decoration:none;color:white;font-size:13px;font-weight:700;font-family:verdana,arial;letter-spacing:-1px;padding-left:10px;padding-right:10px;" href="#">Utile</a>|
				<a style="text-decoration:none;color:white;font-size:13px;font-weight:700;font-family:verdana,arial;letter-spacing:-1px;padding-left:10px;padding-right:10px;" href="#">Termeni si Conditii</a>|
				<a style="text-decoration:none;color:white;font-size:13px;font-weight:700;font-family:verdana,arial;letter-spacing:-1px;padding-left:10px;padding-right:10px;" href="#">Formulare Contracte</a>|
				<a style="text-decoration:none;color:white;font-size:13px;font-weight:700;font-family:verdana,arial;letter-spacing:-1px;padding-left:10px;padding-right:10px;" href="#">Contact</a>
			</div>
		</td>
	</tr>
	<tr>
		<td background="templates/default/images/prnt-footer.png" height="52">&nbsp;</td>
	</tr>
</table>